<template>
  <div>
    <el-form :inline="false">
      <el-form-item label="日志">
        <el-input v-model="errorLog" :rows="40" type="textarea" @blur="formatLog" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'ErrorLogFormat',
  data() {
    return {
      errorLog: null,
      formatErrorLog: null
    }
  },
  methods: {
    formatLog() {
      this.errorLog = this.errorLog.replace(/\\n/g, '\n')
      this.errorLog = this.errorLog.replace(/\\t/g, '    ')
    }
  }
}
</script>

<style scoped>

</style>
